import random
sum=10000

for i in range(1,21):

    grade_calss=random.randint(1,10)

    if grade_calss<5:
        print(f"员工{i},绩效分{grade_calss},低于5，不发工资，下一位")
        continue
    if sum>0:
        sum-=1000
        print(f"向员工{i}发放工资1000元,账户余额还剩{sum}")
    else:
        print("工资已经发完，下个月领取")
        break


